<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>借款方查看</title>
    <link rel="stylesheet" href="../../../static/layer/css/layui.css" media="all"/>
    <style>
        .layui-form-label {
            width: 128px;
        }

        .layui-form {
            margin-top: 3rem;
        }

        .layui-form-label1 {
            position: relative;
            float: left;
            display: block;
            padding: 9px 15px;
            width: 80px;
            font-weight: normal;
            line-height: 20px;
        }
        [class^="class_"] {
            position: relative;
            display: block;
            padding: 9px 15px;
            width: 110px;
            font-weight: normal;
            line-height: 20px;
        }
       /* .class_div{
            border: 1px solid black;
            width: 100%;
            margin: 2rem;
        }*/
        hr{
            background-color: black;
        }

    </style>

    <!-- 百度地图 -->
    <script type="text/javascript"
            src="http://api.map.baidu.com/api?v=2.0&ak=VoGWsEzA2kr5G981Lt3EgNUhREBz4KsW"></script>
</head>

<body>
<form class="layui-form" action="">


    <div class="layui-form-item  ">
        <div class="layui-inline">
            <label class="layui-form-label">公司名称:</label>
            <div class="layui-input-inline">
                <span class="class_company_name"></span>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">统一社会信用代码:</label>
            <div class="layui-input-inline">
                <span class="class_business_license"></span>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">行业类别:</label>
            <div class="layui-input-inline">
                <span class="class_industry_name"></span>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">公司类型:</label>
            <div class="layui-input-inline">
                <span class="class_company_type"></span>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">法定代表人:</label>
            <div class="layui-input-inline">
                <span class="class_legal_person_name"></span>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系电话:</label>
            <div class="layui-input-inline">
                <span class="class_legal_person_tel"></span>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">签订人:</label>
            <div class="layui-input-inline">
                <span class="class_signer"></span>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系电话:</label>
            <div class="layui-input-inline">
                <span class="class_signer_tel"></span>
            </div>
        </div>


        <div class="layui-inline">
            <label class="layui-form-label">

                注册资金:

            </label>
            <div class="layui-input-inline">

                <label class="layui-form-label1">
                    认缴(万元): <span class="class_reg_capital"></span>
                </label>
                <label class="layui-form-label1">
                    实缴(万元): <span class="class_reg_capital_pay"></span>
                </label>


            </div>

        </div>
        <div class="layui-inline">
            <label class="layui-form-label">成立日期:</label>
            <div class="layui-input-inline">
                <span class="class_establish_date"></span>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">注册地址:</label>
            <div class="layui-input-inline">
                <span class="class_reg_address"></span>

            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">经营地址:</label>
            <div class="layui-input-inline">
                <span class="class_business_address"></span>
            </div>

        </div>

    </div>

<hr/>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" type="button" style="margin-left: 35%;" onclick="fh()">取消</button>
        </div>
    </div>
</form>
</body>
<script type="text/javascript" src="../../../static/layer/layui.js"></script>
<script type="text/javascript" src="../../../static/js/common/dateUtils.js"></script>
<script type="text/javascript" src="../../../static/js/common/queryUtils.js"></script>
<script type="text/javascript" src="../../../static/js/jquery-1.9.1.min.js"></script>
<script>

    var id = QueryUtils.GetQueryString("ID");
    showData(id);

    //回显数据
    function showData(id) {
        $.ajax({
            url: "/financial/findhkPersion",
            data: {id: id},
            dataType: "json",
            type: "post",
            async: false,
            success: function (res) {
                debugger
                if (res.errcode == '0') {
                    var data = res.data;

                    /*
                                        tt.COMPANY_NAME,
                                            -- 公司名称
                                        tt.BUSINESS_LICENSE,
                                            -- 统一社会信用代码
                                        tdy.`NAME` AS "INDUSTRY_NAME",
                                            --  行业类别
                                        tt.LEGAL_PERSON_NAME,
                                            -- 法人名名称
                                        tt.LEGAL_PERSON_TEL,
                                            -- 法人联系电话
                                        tl.SIGNER,
                                            -- 签订人
                                        tl.SIGNER_TEL,
                                            -- 签订人电话
                                        tt.REG_CAPITAL,
                                            -- 认缴
                                        tt.REG_CAPITAL_PAY,
                                            -- 实缴
                                        tt.ESTABLISH_DATE,
                                            -- 成立日期
                                        tt.COMPANY_TYPE,-- 公司类型
                                        tt.REG_ADDRESS,
                                            -- 注册地址
                                        tt.BUSINESS_ADDRESS -- 经营地址*/

                    $(".class_company_name").html(data.COMPANY_NAME);// 公司名称
                    $(".class_business_license").html(data.BUSINESS_LICENSE);// 统一社会信用代码
                    $(".class_industry_name").html(data.INDUSTRY_NAME);//  行业类别
                    $(".class_legal_person_name").html(data.LEGAL_PERSON_NAME);// 法人名名称

                    $(".class_legal_person_tel").html(data.LEGAL_PERSON_TEL);// 法人联系电话
                    $(".class_signer").html(data.SIGNER);//签订人
                    $(".class_signer_tel").html(data.SIGNER_TEL);// 签订人电话
                    $(".class_reg_capital").html(data.REG_CAPITAL);// 认缴
                    $(".class_reg_capital_pay").html(data.REG_CAPITAL_PAY);// 实缴

                    $(".class_establish_date").html(data.ESTABLISH_DATE);// 成立日期

                    $(".class_company_type").html(data.COMPANY_TYPE);// 公司类型

                    $(".class_reg_address").html(data.REG_ADDRESS);// 注册地址
                    $(".class_business_address").html(data.BUSINESS_ADDRESS);// 经营地址
                } else {

                }
            }
        });
    }

    /**
     * 返回
     */
    function fh() {
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    }

</script>
</html>